package com.slowfly.rule.engine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.slowfly.rule.engine.entity.Strategy;
import com.slowfly.rule.engine.entity.StrategyRecord;
import com.slowfly.rule.engine.param.StrategyRecordParam;
import com.slowfly.rule.engine.result.ExecuteRiskResult;
import com.slowfly.rule.engine.result.PageResult;
import com.slowfly.rule.engine.result.StrategyRecordResult;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author shalongfei
 * @since 2024-03-04
 */
public interface IStrategyRecordService extends IService<StrategyRecord> {

    void save(long riskId, Strategy strategy, String scripts, Map<String, Object> featureValues,
              Integer decisionId, boolean execute, ExecuteRiskResult result);

    PageResult<StrategyRecordResult> pageStrategyRecord(@RequestBody StrategyRecordParam param);

}
